package com.example.weather.model;

import androidx.work.Data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class DailyResponse {
    private String status;
    private Result result;

    @Override
    public String toString() {
        return "DailyResponse{" +
                "status='" + status + '\'' +
                ", result=" + result +
                '}';
    }

    public String getStatus() {
        return status;
    }

    public Result getResult() {
        return result;
    }

    public static class Result {
        private Daily daily;

        @Override
        public String toString() {
            return "Result{" +
                    "daily=" + daily +
                    '}';
        }

        public Daily getDaily() {
            return daily;
        }
    }

    public static class Daily {
        private List<Temperature> temperature;
        private List<Skycon> skycon;
        @SerializedName("life_index")
        private LifeIndex lifeIndex;

        @Override
        public String toString() {
            return "Daily{" +
                    "temperature=" + temperature +
                    ", skycon=" + skycon +
                    ", lifeIndex=" + lifeIndex +
                    '}';
        }

        public List<Temperature> getTemperature() {
            return temperature;
        }

        public List<Skycon> getSkycon() {
            return skycon;
        }

        public LifeIndex getLifeIndex() {
            return lifeIndex;
        }
    }

    public static class Temperature {
        private Float max, min;

        @Override
        public String toString() {
            return "Temperature{" +
                    "max=" + max +
                    ", min=" + min +
                    '}';
        }

        public Float getMax() {
            return max;
        }

        public Float getMin() {
            return min;
        }
    }

    public static class Skycon {
        private String value;
        private String date;

        @Override
        public String toString() {
            return "Skycon{" +
                    "value='" + value + '\'' +
                    ", data=" + date +
                    '}';
        }

        public String getDate() {
            return date;
        }

        public String getValue() {
            return value;
        }
    }

    public static class LifeIndex {
        private List<LifeDescription> coldRisk, carWashing, ultraviolet, dressing;

        @Override
        public String toString() {
            return "LifeIndex{" +
                    "coldRisk=" + coldRisk +
                    ", carWashing=" + carWashing +
                    ", ultraviolet=" + ultraviolet +
                    ", dressing=" + dressing +
                    '}';
        }

        public List<LifeDescription> getColdRisk() {
            return coldRisk;
        }

        public List<LifeDescription> getCarWashing() {
            return carWashing;
        }

        public List<LifeDescription> getUltraviolet() {
            return ultraviolet;
        }

        public List<LifeDescription> getDressing() {
            return dressing;
        }

    }

    public static class LifeDescription {
        private String desc;

        @Override
        public String toString() {
            return "LifeDescription{" +
                    "desc='" + desc + '\'' +
                    '}';
        }

        public String getDesc() {
            return desc;
        }
    }
}